package com.rickpan.dto.request;

import jakarta.validation.constraints.NotBlank;

/**
 * 合并分片请求DTO
 */
public class MergeChunksRequest {
    
    @NotBlank(message = "上传会话ID不能为空")
    private String uploadId;
    
    @NotBlank(message = "文件名不能为空")
    private String fileName;
    
    private Long parentId;
    
    // 构造函数
    public MergeChunksRequest() {}
    
    public MergeChunksRequest(String uploadId, String fileName) {
        this.uploadId = uploadId;
        this.fileName = fileName;
    }
    
    public MergeChunksRequest(String uploadId, String fileName, Long parentId) {
        this.uploadId = uploadId;
        this.fileName = fileName;
        this.parentId = parentId;
    }
    
    // Getter和Setter方法
    public String getUploadId() {
        return uploadId;
    }
    
    public void setUploadId(String uploadId) {
        this.uploadId = uploadId;
    }
    
    public String getFileName() {
        return fileName;
    }
    
    public void setFileName(String fileName) {
        this.fileName = fileName;
    }
    
    public Long getParentId() {
        return parentId;
    }
    
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }
    
    @Override
    public String toString() {
        return "MergeChunksRequest{" +
                "uploadId='" + uploadId + '\'' +
                ", fileName='" + fileName + '\'' +
                ", parentId=" + parentId +
                '}';
    }
}
